﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Common/_Layout.cshtml";
}
@using EntityModel
@using MvcPaging
@model IPagedList<Advertising>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="6" align="right">
            <a href="/Advertising/Create">新增</a>
        </td>
    </tr>
    <tr>
        <td colspan="6">
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#c9c9c9">
                <tr style="height: 35px; line-height: 35px;">
                    <th bgcolor="#FFFFFF">
                        编号
                    </th>
                    <th bgcolor="#FFFFFF">
                        名称
                    </th>
                    <th bgcolor="#FFFFFF">
                        标识
                    </th>
                    <th bgcolor="#FFFFFF">
                        更新
                    </th>
                </tr>
                @foreach (EntityModel.Advertising a in Model)
                {     
                    <tr style="height: 25px; line-height: 25px; text-align: center;">
                        <td bgcolor="#FFFFFF">
                            @a.Id
                        </td>
                        <td bgcolor="#FFFFFF">
                            @a.Name
                        </td>
                        <td bgcolor="#FFFFFF">
                            @a.Names
                        </td>
                        <td bgcolor="#FFFFFF">
                            <a href="/Advertising/Detail?id=@a.Id">编辑</a>
                        </td>
                    </tr>
                }
            </table>
        </td>
    </tr>
    <tr>
        <td height="35" align="right">
            <div class="pager">
                @Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount)
            </div>
        </td>
    </tr>
</table>
